# -*- coding: utf-8 -*-
from django.http import HttpResponse
from App.models import test
 
# 数据库操作
def adddata(request):
    test.objects.create(name='hdc')
    return HttpResponse("<p>数据添加成功！</p>")

def getdata(request):
	response = ""
	response1 = ""
	response1 = test.objects.get(id="1")
	response = response1
	return HttpResponse(response)

